package com.dcw.lixb.designmode.observer;

/**
 * @author lixiaobin
 * @date 2020-07-29 15:14:08
 * @desc 描述信息
 */
public class BinaryObserver extends Observer {
    public BinaryObserver(Subject subject) {
        this.mSubject = subject;
        this.mSubject.attach(this);
    }

    @Override
    public void update() {
        System.out.println("Binary String : "+Integer.toBinaryString(mSubject.getState()));
    }
}
